home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: New Zealand Amiga Users Group / New Zealand Amiga Users Group Newsdisk v25 (1989-08)(NZAmigaUG).zip / New Zealand Amiga Users Group Newsdisk v25 (1989-08)(NZAmigaUG).adf / Programming / hints&tips (.png) < prev    next >
ANSI Art File  |  1993-12-03  |  2KB  |  640x656  |  1-bit (2 colors)
Labels: text | screenshot | font
OCR: C PROGRAMMING SECTION - HINTS & TIPS. JJB TEMPLAR (1) (2) Strings. fpinit as a stub function. 1 Strings . Something to be aware of: the ANSI standard defines that if two strings are adjacent in the source file, they should be concatenated. For example: char *string = "1st part of string" " - followed by 2nd part. \n"; is equivalent to saying : char *string = "1st part of string - followed by 2nd part. \n"; I noticed this in an old list of the proposed ANSI standard in BYTE, tried it out with Lattice, and presto! This is most useful when using the compiler defined strings DATE _, _TIME _, etc. For example: char version[] = "1st NZAmigaUG (Wgtn) Ty v1.3 - "_DATE is a very easy way to get the date automatically put into a string that can be used without run-time modifications. 2 fpinit as a s ...